package com.zy.simplefactory1;

import com.zy.bean.CCourse;
import com.zy.bean.ICourse;

/**
 * @program: shopping153_cloud
 * @description:
 * @author: zy
 * @create: 2025-08-27 15:41
 */
public class TestSimpleFactory {
    public static void main(String[] args) {
        CourseFactory courseFactory = new CourseFactory();
        ICourse course = courseFactory.createCourse("java");
        course.record();

        course=courseFactory.createCourse("python");
        course.record();

        course=courseFactory.createCourse2("com.zy.bean.CCourse");
        course.record();

        course=courseFactory.createCourse3(CCourse.class);
        course.record();
    }
}
